package cn.bass.marketing.entity;

import cn.bass.marketing.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 奖品策略
 */
@Data
@ApiModel(value = "奖品策略")
@TableName("marketing_strategy_prize")
@EqualsAndHashCode(callSuper = true)
public class MarketingStrategyPrizeDO extends BaseEntity implements java.io.Serializable {
    /**
    * 主键
    */
    @JsonProperty("cId")
    @ApiModelProperty(value = "主键")
    @TableId(value = "C_ID", type = IdType.AUTO)
    private Integer cId;

    /**
    * 策略ID
    */
    @JsonProperty("cStrategyId")
    @ApiModelProperty(value = "策略ID")
    private Integer cStrategyId;

    /**
    * 奖品ID
    */
    @JsonProperty("cPrizeId")
    @ApiModelProperty(value = "奖品ID")
    private Integer cPrizeId;

    /**
    * 奖品标题
    */
    @JsonProperty("cPrizeTitle")
    @ApiModelProperty(value = "奖品标题")
    private String cPrizeTitle;

    /**
    * 奖品副标题
    */
    @JsonProperty("cPrizeSubtitle")
    @ApiModelProperty(value = "奖品副标题")
    private String cPrizeSubtitle;

    /**
    * 奖品总数
    */
    @JsonProperty("cPrizeTotal")
    @ApiModelProperty(value = "奖品总数")
    private Integer cPrizeTotal;

    /**
    * 剩余数量
    */
    @JsonProperty("cResidualCount")
    @ApiModelProperty(value = "剩余数量")
    private Integer cResidualCount;

    /**
    * 中奖概率
    */
    @JsonProperty("cPrizeRate")
    @ApiModelProperty(value = "中奖概率")
    private BigDecimal cPrizeRate;

    /**
    * 模型类型
    */
    @JsonProperty("cRuleModels")
    @ApiModelProperty(value = "模型类型")
    private String cRuleModels;

    /**
    * 排序规则
    */
    @JsonProperty("cSort")
    @ApiModelProperty(value = "排序规则")
    private Integer cSort;

    /**
    * 状态(ENABLED-启用, STOP-停用, DELETE-删除)
    */
    @JsonProperty("cStatus")
    @ApiModelProperty(value = "状态(ENABLED-启用, STOP-停用, DELETE-删除)")
    private String cStatus;

}